Flajolet-Martin algorithm
Flajolet-Martin (simplified):
- Choose random hash function .
- For :
- return:
Lemma:
distinct items in our stream,
proof:
⚠️ add to notes here later
Lemma:
proof:
⚠️ add to notes here later #incomplete
References:
- https://en.wikipedia.org/wiki/Flajolet–Martin_algorithm
- P. Flajolet and G. Nigel Martin, “Probabilistic counting algorithms for data base applications,” Journal of Computer and System Sciences, vol. 31, no. 2, pp. 182–209, Oct. 1985, doi: 10.1016/0022-0000(85)90041-8.